import request from '@/utils/request';

export async function getMasterPlanByPage (params: any) {
    return request('/api/project/getMasterPlanByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addMasterPlan (params: any) {
    return request('/api/project/addMasterPlan', {
    method: 'POST',
    data: params,
  });
}

export async function updateMasterPlan (params: any) {
    return request('/api/project/updateMasterPlan', {
    method: 'POST',
    data: params,
  });
}

export async function delMasterPlan (params: any) {
    return request('/api/project/delMasterPlan', {
    method: 'POST',
    data: params,
  });
}


export async function exportMasterPlan(params: any) {
    return request('/api/project/exportMasterPlan', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getMasterPlanByPage, addMasterPlan, updateMasterPlan, delMasterPlan, exportMasterPlan }
